package c.j.a.d.b.d;

import c.j.a.d.b.g.a;
import com.ss.android.socialbase.downloader.g.c;

/* compiled from: AbsDownloadListener */
public abstract class p implements b {
    public static final String a = "p";

    public void A(c cVar) {
        if (a.b() && cVar != null) {
            String str = a;
            StringBuilder g = c.b.a.a.a.g(" onFirstSuccess -- ");
            g.append(cVar.b);
            a.d(str, g.toString());
        }
    }

    public void D(c cVar) {
        if (a.b() && cVar != null) {
            String str = a;
            StringBuilder g = c.b.a.a.a.g(" onSuccessed -- ");
            g.append(cVar.b);
            a.d(str, g.toString());
        }
    }

    public void H(c cVar) {
        if (a.b() && cVar != null) {
            String str = a;
            StringBuilder g = c.b.a.a.a.g(" onCanceled -- ");
            g.append(cVar.b);
            a.d(str, g.toString());
        }
    }

    public void N(c cVar, com.ss.android.socialbase.downloader.e.a aVar) {
        if (a.b() && cVar != null) {
            String str = a;
            Object[] objArr = new Object[2];
            objArr[0] = cVar.b;
            objArr[1] = aVar != null ? aVar.b : "unkown";
            a.d(str, String.format("onRetryDelay on %s because of : %s", objArr));
        }
    }

    public void R(c cVar, com.ss.android.socialbase.downloader.e.a aVar) {
        if (a.b() && cVar != null) {
            String str = a;
            Object[] objArr = new Object[2];
            objArr[0] = cVar.b;
            objArr[1] = aVar != null ? aVar.b : "unkown";
            a.d(str, String.format("onRetry on %s because of : %s", objArr));
        }
    }

    public void a(c cVar) {
        if (a.b() && cVar != null) {
            String str = a;
            StringBuilder g = c.b.a.a.a.g(" onPrepare -- ");
            g.append(cVar.b);
            a.d(str, g.toString());
        }
    }

    public void b(c cVar) {
        if (a.b() && cVar != null) {
            String str = a;
            StringBuilder g = c.b.a.a.a.g(" onStart -- ");
            g.append(cVar.b);
            a.d(str, g.toString());
        }
    }

    public void c(c cVar) {
        if (a.b() && cVar != null && cVar.T != 0) {
            int I = (int) ((((float) cVar.I()) / ((float) cVar.T)) * 100.0f);
            String str = a;
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append(cVar.b);
            stringBuilder.append(" onProgress -- %");
            stringBuilder.append(I);
            a.d(str, stringBuilder.toString());
        }
    }

    public void u(c cVar) {
        if (a.b() && cVar != null) {
            String str = a;
            StringBuilder g = c.b.a.a.a.g(" onFirstStart -- ");
            g.append(cVar.b);
            a.d(str, g.toString());
        }
    }

    public void x(c cVar) {
        if (a.b() && cVar != null) {
            String str = a;
            StringBuilder g = c.b.a.a.a.g(" onPause -- ");
            g.append(cVar.b);
            a.d(str, g.toString());
        }
    }

    public void z(c cVar, com.ss.android.socialbase.downloader.e.a aVar) {
        if (a.b() && cVar != null) {
            String str = a;
            Object[] objArr = new Object[2];
            objArr[0] = cVar.b;
            objArr[1] = aVar != null ? aVar.b : "unkown";
            a.d(str, String.format("onFailed on %s because of : %s", objArr));
        }
    }
}
